﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace FlanProjectData.Sprites
{
    public class Image : Sprite
    {
        public void LoadContent(ContentManager contentManager)
        {
            SpriteTexture = contentManager.Load<Texture2D>(SpriteTextureAsset);
        }

        public void Draw(SpriteBatch spriteBatch, Vector2 position, bool isFullScreen = false)
        {
            if (isFullScreen)
                spriteBatch.Draw(SpriteTexture, spriteBatch.GraphicsDevice.Viewport.Bounds, Color.White);
            else
                spriteBatch.Draw(SpriteTexture, position, Color.White);
        }
    }
}
